let logObj=document.querySelector('.landing') //登陆按钮
//用户名
let username=document.querySelector('.username input')
//密码
let password=document.querySelector('.password input')
logObj.onclick=function(){
let nameV=username.value
let passV=password.value
if(passV==''||nameV==''){
    alert('不能为空')
}else{
    localStorage.setItem(nameV,passV);
alert('登陆成功')
location.href='../pages/index.html'
}
}
